home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- Caption = "Form1"
- ClientHeight = 4020
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 7365
- Height = 4425
- Left = 1035
- LinkTopic = "Form1"
- ScaleHeight = 4020
- ScaleWidth = 7365
- Top = 1140
- Width = 7485
- Begin CommandButton cmdClose
- Caption = "&Close DDE"
- Height = 735
- Left = 600
- TabIndex = 4
- Top = 1440
- Width = 2295
- End
- Begin CommandButton Command3
- Caption = "&Poke Close"
- Height = 495
- Left = 2280
- TabIndex = 3
- Top = 2400
- Width = 1215
- End
- Begin TextBox txtDestination
- Height = 285
- Left = 480
- TabIndex = 2
- Text = "Text1"
- Top = 720
- Width = 1575
- End
- Begin CommandButton Command2
- Caption = "&Request"
- Height = 495
- Left = 3000
- TabIndex = 1
- Top = 240
- Width = 1215
- End
- Begin CommandButton Command1
- Caption = "&Open Source"
- Height = 495
- Left = 3000
- TabIndex = 0
- Top = 1320
- Width = 1215
- End
- Option Explicit
- Sub cmdClose_Click ()
- txtDestination.LinkMode = 0
- End Sub
- Sub Command1_Click ()
- Dim rc
- Dim Sourcepath As String
- Sourcepath = App.Path
- If Right$(Sourcepath, 1) <> "\" Then
- Sourcepath = Sourcepath & "\"
- End If
- rc = Shell(Sourcepath & "source")
- End Sub
- Sub Command2_Click ()
- On Error GoTo ErrDDE
- txtDestination.LinkMode = 0
- txtDestination.LinkTopic = "Source|frmSource"
- txtDestination.LinkItem = "txtItem"
- txtDestination.LinkMode = 2
- txtDestination.LinkRequest
- Exit Sub
- ErrDDE:
- If Err = 282 Then
- MsgBox "Source is not there"
- MsgBox Str$(Err)
- End If
- Exit Sub
- End Sub
- Sub Command3_Click ()
- txtDestination.Text = "close"
- txtDestination.LinkPoke
- End Sub
-